const { assert } = require("chai");
const { describe, it } = require("mocha");

const { snake } = require("../../dist/es5");
const cases = require("./_cases");

const expects = [
    "name_styles_is_a_good_library",
    "name_styles_is_a_good_library",
    "name_styles",
    "name_styles",
    "name_styles",
    "this_is_a_sentence"
];

module.exports = () => {
    describe("conver to snake_style", () => {
        cases.forEach((c, i) => {
            it(`${c} => ${expects[i]}`, () => {
                assert.strictEqual(snake(c), expects[i]);
            });
        });
    });
};
